﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

/// <summary>
/// This page serves to display the full size of images.
/// </summary>
public partial class FullSizeImage : BasePage
{
    /// <summary>
    /// When the page initially loads we call the routine to
    /// load the image.
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
            LoadImage();
    }

    /// <summary>
    /// This method sets the source of the image element
    /// to the querystring "ImagePath".
    /// </summary>
    private void LoadImage()
    {
        imgImage.Src = "~/" + Request.QueryString["ImagePath"];
    }
}
